src = $(wildcard ./src/*.cpp)
obj = $(patsubst ./src/%.cpp, ./obj/%.o, $(src))
inc_path = -I./include
args = -Wall -g -lpthread $(inc_path)
CC:=g++
ALL:a.out
$(obj):./obj/%.o:./src/%.cpp
	$(CC) -c $< -o $@ $(args)
a.out:$(obj)
	$(CC) $^ -o $@ $(args)
clean:
	-rm -rf $(obj) a.out
rebuild:clean a.out
.PHONY:clean ALL rebuild